package fun.chutianshu.eescore_full.controller;

import fun.chutianshu.eescore_full.entity.ClassInfo;
import fun.chutianshu.eescore_full.service.ClassInfoService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 班级信息表(ClassInfo)表控制层
 *
 * @author makejava
 * @since 2021-04-28 17:06:48
 */
@RestController
@RequestMapping("classInfo")
public class ClassInfoController {
    /**
     * 服务对象
     */
    @Resource
    private ClassInfoService classInfoService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public ClassInfo selectOne(Integer id) {
        return this.classInfoService.queryById(id);
    }

}